package com.lb.activity.service;

import com.lb.activity.po.ExaminePermission;
import com.lb.activity.po.ExamineRole;
import com.lb.activity.util.PermissionTree;
import com.lb.activity.util.ResultUtil;
import com.lb.activity.vo.RoleVo;

public interface ExamineRoleService {
    ResultUtil list(RoleVo roleVo);

    ResultUtil add(ExamineRole role);

    ExamineRole getOne(Long id);

    ResultUtil update(ExamineRole role);

    ResultUtil delete(Long id);

    ResultUtil changeStatus(Long id, boolean boolStatus);

    PermissionTree<ExaminePermission> getRoleTree(Long roleId);

    /**
     * 分配权限
     * @param id 角色ID
     * @param menuIds 权限s
     */
    void modifyRoleMenus(Long id, String[] menuIds);

    /**
     * 获取所有角色
     * @return
     */
    ResultUtil allRoles();
}
